All Functions of Week 1

filter

{dplyr}

Filter out rows of a data frame according to logical vector

min

{base}

Get minimum of a vector

c

{base}

Combine values/vectors into a vector

median

{stats}

Get median of a vector

str

{utils}

Get the structure of an R object

summary

{base}

Obtain summary statistics or detailed regression output

ordered

{dplyr}

Create an ordered factor

setwd

{base}

Set Working Directory

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

cut

{base}

Convert Numeric to Factor

library

{base}

Load an R package

max

{base}

Get maximum of a vector

length

{base}

Returns number of elements in an object

sd

{stats}

Get standard deviation of a vector

par

{graphics}

Set parameters of the plotting device

head

{utils}

Show first 5 rows of a data frame

names

{base}

Retrieve names of a list/vector

plot

{graphics}

Generic function from base R to produce a plot

read_excel

{readxl}

Read an Excel file

range

{base}

Return range of values

var

{stats}

Calculate variance

is.na

{base}

Check if a value is NA/elements of vector are NA

mean

{base}

Get mean of a vector

seq

{base}

Create a sequence

mutate

{dplyr}

Modify/create a column in a data frame

dnorm

{stats}

Density distribution for the normal distribution

The end!